﻿using Microsoft.EntityFrameworkCore;
using Paas.Pioneer.Domain;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Paas.Pioneer.Admin.Core.Domain.Works.LinkLabel
{
    /// <summary>
    /// 作品关联标签表
    /// </summary>
    [Table("Works_LinkLabel")]
    [Comment("作品关联标签表")]
    [Index(nameof(WorksInfoId), Name = "IDX_WorksInfoId")]
    [Index(nameof(UserId), Name = "IDX_UserId")]
    [Index(nameof(WorksLabelId), Name = "IDX_WorksLabelId")]
    public class Works_LinkLabelEntity : BaseEntity
    {
        /// <summary>
        /// 作品ID
        /// </summary>
        [Comment("作品ID")]
        [Column("WorksInfoId", TypeName = "char(36)")]
        public Guid WorksInfoId { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        [Comment("用户ID")]
        [Column("UserId", TypeName = "char(36)")]
        public Guid UserId { get; set; }

        /// <summary>
        /// 标签ID
        /// </summary>
        [Comment("标签ID")]
        [Column("WorksLabelId", TypeName = "char(36)")]
        public Guid WorksLabelId { get; set; }
    }
}
